//
//  DataOfSearchChoice.m
//  LCOnePsychology
//
//  Created by li cheng on 16/09/13
//  Copyright (c) __ORGANIZATIONNAME__. All rights reserved.
//

#import "DataOfSearchChoice.h"
#import "DataOfNeedSearchChoice.h"

@implementation DataOfSearchChoice

+ (NSDictionary *)objectClassInArray{
    return @{@"data" : [DataOfNeedSearchChoice class]};
}

- (void)setValue:(id)value forKey:(NSString *)key{
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"data"]) {
        NSMutableArray<DataOfNeedSearchChoice *> *mArrayOfDataOfNeedSearchChoice = [NSMutableArray array];
        for (NSDictionary *dic in value) {
            DataOfNeedSearchChoice *dataOfNeedSearchChoice = [DataOfNeedSearchChoice modelDic:dic];
            [mArrayOfDataOfNeedSearchChoice addObject:dataOfNeedSearchChoice];
        }
        _data = mArrayOfDataOfNeedSearchChoice;
    }
}
@end
